package com.wanmait.gohome.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.pojo.Admin;
import com.wanmait.gohome.pojo.Userinfo;

import javax.servlet.http.HttpServletRequest;

public interface AdminService extends CommonService<Admin> {
    //登陆
    Admin findByAccountAndPass(String account,String password,HttpServletRequest request);
    //查询管理员信息
    Admin findInfo(String account);
    //查询用户密码
    Admin findOldPass(String password,Integer id);
    //更新密码
    void updatePass(String password,Integer id);
    //查找状态
    int findMark(String account);
//封禁
    void banned(Integer id);
    //解封
    void deblocking(Integer id);
    //退出loginIp清除
    void cleanLoginIp(Integer id);
//封号理由
    void insertReject(Admin admin);
}
